/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package companyaccess;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


/**
 *
 * @author thomaskrop
 */
public class CompanyAccess {
    
    private Connection con ; 
      public void  connect(String url ,String login ,  String password) throws SQLException {
       con = DriverManager.getConnection(url,login, password);
     
      }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SQLException {
        
       
        String url = "jdbc:mysql://sql-users.ece.fr:3305/krop" ;
        String login = "krop-rw" ;
        String password = "PqgpArkW" ;
        
        
        
        
    
        CompanyAccess c = new CompanyAccess(); 
        c.connect(url,login, password);
      
    
    } 
        
        
        
        // TODO code application logic here
    }
}
